<?xml version="1.0" ?>

<container xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">

    <parameters>
        <parameter key="assetic.filter.uglifyjs.class">Assetic\Filter\UglifyJsFilter</parameter>
        <parameter key="assetic.filter.uglifyjs.bin">/usr/bin/uglifyjs</parameter>
        <parameter key="assetic.filter.uglifyjs.node">%assetic.node.bin%</parameter>
        <parameter key="assetic.filter.uglifyjs.timeout">null</parameter>
        <parameter key="assetic.filter.uglifyjs.node_paths">%assetic.node.paths%</parameter>
        <parameter key="assetic.filter.uglifyjs.beautify">false</parameter>
        <parameter key="assetic.filter.uglifyjs.no_copyright">false</parameter>
        <parameter key="assetic.filter.uglifyjs.unsafe">false</parameter>
        <parameter key="assetic.filter.uglifyjs.mangle">false</parameter>
        <parameter key="assetic.filter.uglifyjs.defines" type="collection"></parameter>
    </parameters>

    <services>
        <service id="assetic.filter.uglifyjs" class="%assetic.filter.uglifyjs.class%">
            <tag name="assetic.filter" alias="uglifyjs" />
            <argument>%assetic.filter.uglifyjs.bin%</argument>
            <argument>%assetic.filter.uglifyjs.node%</argument>
            <call method="setTimeout"><argument>%assetic.filter.uglifyjs.timeout%</argument></call>
            <call method="setNodePaths"><argument>%assetic.filter.uglifyjs.node_paths%</argument></call>
            <call method="setBeautify"><argument>%assetic.filter.uglifyjs.beautify%</argument></call>
            <call method="setNoCopyright"><argument>%assetic.filter.uglifyjs.no_copyright%</argument></call>
            <call method="setUnsafe"><argument>%assetic.filter.uglifyjs.unsafe%</argument></call>
            <call method="setMangle"><argument>%assetic.filter.uglifyjs.mangle%</argument></call>
            <call method="setDefines"><argument>%assetic.filter.uglifyjs.defines%</argument></call>
        </service>
    </services>
</container>
